import request from "@/utils/request";

// 查询年度施工轮廓计划列表
  export function listYear(query) {
    return request({
      url: "production-plan/maintainOutline/selectProYearMaintainList",
      method: "get",
      params: query,
    });
  }
  // 新增年度施工轮廓计划
  export function addYear(data) {
    return request({
      url: "production-plan/maintainOutline/insertProYearMaintainOutlinePlanAndOutlineList",
      method: "post",
      data: data,
    });
  }
  //修改年度施工轮廓计划
  export function updateYear(data) {
    return request({
      url: "production-plan/maintainOutline/updateProYearMaintainOutlinePlan",
      method: "post",
      data: data,
    });
  }
  //删除年度施工轮廓计划
  export function deleteRelevanceById(data) {
    return request({
      url: "production-plan/maintainOutline/deleteRelevanceById",
      method: "get",
      params: data,
    });
  }

  export function examineMaintainPlan(data) {
    return request({
      url: "production-plan/maintainOutline/examineMaintainPlan",
      method: "post",
      data: data,
    });
  }

  // 查询桥隧涵列表
  export function selectProYearBtcList(query) {
    return request({
      url: "production-plan/btcMaintain/selectProYearBtcList",
      method: "get",
      params: query,
    });
  }
  // 新增桥隧涵计划
  export function insertYearBtcMaintainAndTaskDetail(data) {
    return request({
      url: "production-plan/btcMaintain/insertYearBtcMaintainAndTaskDetail",
      method: "post",
      data: data,
    });
  }
  //修改桥隧涵计划
  export function editProYearBtcMaintainAndTaskDetail(data) {
    return request({
      url: "production-plan/btcMaintain/editProYearBtcMaintainAndTaskDetail",
      method: "post",
      data: data,
    });
  }
  //删除桥隧涵计划
  export function deletePlanId(data) {
    return request({
      url: "production-plan/btcMaintain/deletePlanId",
      method: "get",
      params: data,
    });
  }
  // 提交审批
  export function examineBtcPlan(data) {
    return request({
      url: "production-plan/btcMaintain/examineBtcPlan",
      method: "post",
      data: data,
    });
  }
  // 新增年度计划
  export function insertYearExaminePlan(data) {
    return request({
      url: "production-plan/yearExamine/insertYearExaminePlan",
      method: "post",
      data: data,
    });
  }
  // 查询年度计划
  export function selectProYearExaminePlanList(query) {
    return request({
      url: "production-plan/yearExamine/selectProYearExaminePlanList",
      method: "get",
      params: query,
    });
  }



  // 查询道岔列表查询
  export function selectProYearRailwayList(query) {
    return request({
      url: "production-plan/railwayMaintain/selectProYearRailwayList",
      method: "get",
      params: query,
    });
  }
  // 新增道岔
  export function insertProYearRailwayAndDetail(data) {
    return request({
      url: "production-plan/railwayMaintain/insertProYearRailwayAndDetail",
      method: "post",
      data: data,
    });
  }
  // 修改道岔
  export function updateProYearRailway(data) {
    return request({
      url: "production-plan/railwayMaintain/updateProYearRailway",
      method: "post",
      data: data,
    });
  }
  // 删除道岔列表查询
  export function deleteProYearRailwayById(query) {
    return request({
      url: "production-plan/railwayMaintain/deleteProYearRailwayById",
      method: "get",
      params: query,
    });
  }
  // 提交审批
  export function examineRailway(data) {
    return request({
      url: "production-plan/railwayMaintain/examineRailway",
      method: "post",
      data: data,
    });
  }
  
  // 查询应急接口
  export function selectProEmergencyTaskList(query) {
    return request({
      url: "production-plan/emergencyTask/selectProEmergencyTaskList",
      method: "get",
      params: query,
    });
  }
  // 查询应急明细接口
  export function selectProEmergencyTaskByDetail(query) {
    return request({
      url: "production-plan/emergencyTask/selectProEmergencyTaskByDetail",
      method: "get",
      params: query,
    });
  }
  
